#pragma once
#include <d3d9.h>
#pragma comment (lib,"d3d9.lib")
#include <d3dx9.h>
#pragma comment (lib,"d3dx9.lib")
#include <string>
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480
class Graphic
{
private: 
	LPDIRECT3D9 sm_d3d; 
	LPDIRECT3DDEVICE9 sm_device;
	LPDIRECT3DSURFACE9 sm_backbuffer;
	LPDIRECT3DSURFACE9 sm_surface;
public:
	Graphic();
	bool InitDevice(HWND);
	LPDIRECT3DDEVICE9 GetDevice();
	LPDIRECT3DSURFACE9 GetBackBuffer();
	LPDIRECT3DSURFACE9 GetSurface();
	IDirect3DSurface9* getSurfaceFromBitmap(std::string);
	void Release();
};

